package com.chenye.scheduled;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther:chenye
 * @Data:2018/8/10
 * @Description:
 */
@RestController
public class TestController {
    @Autowired
    private SchedulingService schedulingService;
    @RequestMapping("/test")
    public String test() throws InterruptedException {
        String str = schedulingService.testAsync();
        System.err.println(str);
        System.err.println("在str返回之前就已经执行");
        return "完成";
    }
}
